
*{
    font-family: sans-serif;
    margin: 0px;
    padding: 0px;
}
#bg{
   position: absolute;
   width: 100%;
   height: 100%;
   background-image: url(../images/bg.jpg);
   background-size:cover;
   background-repeat: no-repeat;
   /* filter: blur(2px);  */
}
a{
    position: relative;
    text-decoration: none;
    font-size: 15px;
    color:white;
}
#content{
    width: 500px;
    padding:40px;
    position: absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background-color:rgba(0, 0, 0, 0.5); 
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0 15px 25px  rgba(0, 0, 0, 0.5);
}
h1{
    margin:0 0 30px;
    font-size: 30px;
    color: #eeeeee;
    font-weight: normal;
    text-align: center;
}
.inputBox{
    position: relative;
}
.inputBox input{
    width:100%;
    padding: 10px 0px;
    font-size: 16px;
    color: #eeeeee;
    border:none;
    border-bottom: 1px solid #eeeeee;
    background:transparent;
    outline-style: none;
    margin-bottom: 30px;
}
.inputBox label{
    position: absolute;
    top:0;
    left: 0;
    padding:10px 0;
    font-size: 16px;
    color: #eeeeee;
    pointer-events:none;
    transition: 0.5s;
}
.inputBox input:focus ~ label,.inputBox input:valid ~ label{   /*:focus获取焦点*/
    /* :valid 需要配合required使用 当input输入内容后并失去焦点时 label任然保持以下样式  required属性规定必需在提交表单之前填写输入字段 布尔类型 。*/
    /*~获取父元素中所有label标签*/
    top: -30px;
    left: 0px;
    color: #03a9f4;
}
[type="button"]{
    border:none;
    outline: none;
    color: #fff;
    background: #03a9f4;
    padding:10px 20px;
    cursor: pointer;
    border-radius: 5px;
}
.forget {
   position: absolute;
   bottom:10px;
    right:55px;
    color: #03a9f4;
    font-size: 13px;
}
.regist{
   position: absolute;
   bottom:35px;
    left:330px;
    color: #03a9f4;
    font-size: 13px;
}
label{
    color: white;
}